package com.gjy.design.strategy.payment;

/**
 * @author gjy
 * @version 1.0
 * @since 2025-11-06 11:08:38
 */
@FunctionalInterface
public interface PaymentStrategy {

    /**
     * 支付方法
     *
     * @param amount 支付金额
     * @return true:支付成功 false:支付失败
     */
    boolean pay(double amount);

}
